package com.krzysztofadamczyk.dddex.domain.model.customer;

import com.krzysztofadamczyk.dddex.domain.model.Address;
import com.krzysztofadamczyk.dddex.domain.model.customergroup.CustomerGroup;

public class Customer {

    private final long id;
    private String name;
    private Address address;
    private CustomerGroup customerGroup;

    public Customer(final long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public Address getAddress() {
        return address;
    }

    public void updateAddress(final Address address) {
        this.address = address;
    }

    public CustomerGroup getCustomerGroup() {
        return customerGroup;
    }

    public long getId() {
        return id;
    }

    public void assignCustomerGroup(final CustomerGroup customerGroup) {
        this.customerGroup = customerGroup;
    }

}
